import { ethers } from "hardhat";
export async function getMock(){
    const baseFee="10000000000000000"//0.1Link
    const gasPriceLink="1000000000";//1 gwei
    let siners=await ethers.getSigners();//获取签名者
    let deployer=siners[0];
    const VRFCoordinatorV2Mock = await ethers.getContractFactory("VRFCoordinatorV2Mock",deployer);

    let VRFCoordinatorV2MockContract=await VRFCoordinatorV2Mock.deploy(baseFee,gasPriceLink);
    // console.log(deployer)
    console.log('Mocker is Deployed in=>'+await VRFCoordinatorV2MockContract.getAddress()+'   by deployer=>'+deployer.address);
    return {deployer,VRFCoordinatorV2MockContract};
}
// module.exports=main()
// module.exports.tags=['mock']